Skip to content

Java Migration Guide: Removed APIs #1879

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 28, 2025
Merged

Java Migration Guide: Removed APIs #1879

merged 5 commits into from
May 28, 2025

Conversation

MattSchur
Copy link
Contributor

No description provided.

@MattSchur MattSchur requested a review from smahati as a code owner May 27, 2025 11:35
@MattSchur MattSchur requested review from rjayasinghe and agoerler May 27, 2025 11:37
- Removed deprecated methods:
- `com.sap.cds.ql.cqn.Modifier.search(String term)`, use `searchTerm(CqnSearchTermPredicate)` instead
- `com.sap.cds.ql.cqn.Modifier.selectListValue(Value<?> value, String alias)`, use `selectListValue(SelectableValue value, String alias)` instead
- `com.sap.cds.ql.SelectableValue.withoutAlias()`, use `as(String alias)` instead
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use as(String alias) instead

Do we need any replacement? Or can we just put the selectable value on the select list? Please double-check.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we need the replacement. SelectableValue does not extend CqnSelectListItem. All values on the select list shall have an implicit or explicit alias now.

@renejeglinsky renejeglinsky disabled auto-merge May 28, 2025 11:29
@renejeglinsky renejeglinsky merged commit 9316e91 into main May 28, 2025
4 checks passed
@renejeglinsky renejeglinsky deleted the java-migration branch May 28, 2025 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants